package org.force4spring;

import org.springframework.dao.UncategorizedDataAccessException;

import com.sforce.soap.partner.fault.ApiFault;
import com.sforce.soap.partner.fault.ExceptionCode;

public class GenericException extends UncategorizedDataAccessException {
	private ExceptionCode exceptionCode;

	public GenericException(ApiFault fault) {
		super(fault.getExceptionMessage(), fault);
		exceptionCode = fault.getExceptionCode();
	}

	public ExceptionCode getExceptionCode() {
		return exceptionCode;
	}
}
